package com.java.shop.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.java.common.utils.PageUtils;
import com.java.shop.product.entity.SkuInfoEntity;
import com.java.shop.product.entity.SpuInfoEntity;
import com.java.shop.product.vo.Skus;
import com.java.shop.product.webvo.SkuItemVo;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * sku
 *
 * @author cxq
 * @email 137512476@qq.com
 * @date 2021-03-26 11:19:52
 */
public interface SkuInfoService extends IService<SkuInfoEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveSkuInfo(SpuInfoEntity spuInfoEntity, List<Skus> skus);

    PageUtils queryPageByCondition(Map<String, Object> params);

    SkuItemVo getItem(Long skuId);

    Map<Long, BigDecimal> getNewPriceBySkuIds(List<Long> skuIds);

    Map<Long, SkuInfoEntity> getSkuInfoByIds(List<Long> skuIds);
}

